//
//  mySwitch.m
//  UI05_UIControl
//
//  Created by dllo on 16/3/15.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "mySwitch.h"

@implementation mySwitch

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/



- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        [self config];
    }
    return self;

}
#pragma mark - config

- (void)config{

    //onTitleColor(打开状态颜色)
    self.onTintColor = [UIColor redColor];
    //关闭时颜色
    self.tintColor = [UIColor blueColor];
    //按钮颜色
    self.thumbTintColor = [UIColor purpleColor];
}
@end
